package com.hack.validator;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 验证器属性类
 * 包含验证器的配置信息
 *
 * @author hack
 * @version 1.0
 * @date 2025/07/11
 */
@ConfigurationProperties(prefix = "param.validator")
@Component
public class ValidatorProperties {
    private boolean enabled = true;
    private String appId = "default-app";
    private int cacheRefreshMinutes = 5;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public int getCacheRefreshMinutes() {
        return cacheRefreshMinutes;
    }

    public void setCacheRefreshMinutes(int cacheRefreshMinutes) {
        this.cacheRefreshMinutes = cacheRefreshMinutes;
    }
}